package com.sishuok.springstudy.aop;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class MyAOP {
	
	@Around("execution(* com.sishuok.springstudy.aop.*.*(..))")
	public Object myAround(ProceedingJoinPoint pjp)throws Throwable {
		System.out.println("my around before----------->");
		Object obj = pjp.proceed();
		System.out.println("my around after----------->");
		return obj;
	}
}
